package com.example.searchbackend.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_article")
public class Article {
    @TableId
    private Long id;
    private String title; // 文章标题
    private String content; // 文章内容
    private Long authorId; // 作者id
    @TableLogic
    private Integer deleteFlag; // 删除标记
    private LocalDateTime createTime; // 创建时间
    private LocalDateTime updateTime; // 更新时间

}
